8cb4a5d13779984e7d43dc802ffff3b92e83987a,metrics-jersey2/src/main/java/com/codahale/metrics/jersey2/InstrumentedResourceMethodApplicationListener.java,InstrumentedResourceMethodApplicationListener,registerTimedAnnotations,#ImmutableMap.Builder#ResourceMethod#,200

Before Change



    private void registerTimedAnnotations(final ImmutableMap.Builder<Method, Timer> builder,
                                          final ResourceMethod method) {
        final Timed annotation = method.getInvocable().getDefinitionMethod().getAnnotation(Timed.class);

        if (annotation != null) {
            builder.put(method.getInvocable().getDefinitionMethod(), timerMetric(this.metrics, method, annotation));
        }
    }

After Change



    private void registerTimedAnnotations(final ImmutableMap.Builder<Method, Timer> builder,
                                          final ResourceMethod method) {
        final Method definitionMethod = method.getInvocable().getDefinitionMethod();
        final Timed annotation = definitionMethod.getAnnotation(Timed.class);

        if (annotation != null) {
            builder.put(definitionMethod, timerMetric(this.metrics, method, annotation));